package com.xunk.common.core.constant;

/**
 * 缓存的key 常量
 *
 * @author ruoyi
 */
public class CacheConstants {
    /**
     * oauth 缓存前缀
     */
    public static final String OAUTH_ACCESS = "oauth:access:";

    /**
     * oauth 客户端信息
     */
    public static final String CLIENT_DETAILS_KEY = "oauth:client:details";

    /**
     * 0：ownId
     * 1:did
     */
    public static final String RUYING_DEVICE_DEFINE_CACHE = "ruying:device:{0}:{1}";

    /**
     * ownId和deptId 对应关系查询
     */
    public static final String FIND_DEPTID_BY_OWNID = "hainayun:ownerid:";
    public static final String FIND_OWNID_BY_DEPTID = "hainayun:deptid:";

    /**
     *  安科瑞网管设备的心跳记录
     */
    public static final String ACREL_HEARTBEAT_TIME = "acrel:heartbeat:time:";
    /**
     * 记录实时地暖供水温度
     */
    public static final String CURRENT_WATER_SUPPLY_TEMP = "acrel:heat:water-sup:";
    /**
     * 记录实时地暖回水温度
     */
    public static final String CURRENT_WATER_RETURN_TEMP = "acrel:heat:water-return:";
    /**
     * 记录实时地暖功率
     */
    public static final String CURRENT_HEAT_POWER = "acrel:heat:power:";
    /**
     * 记录实时地暖流量
     */
    public static final String CURRENT_HEAT_METER = "acrel:heat:meter:";
    /**
     *  暖表开关
     */
    public static final String HEAT_SWITCH_STATUS = "acrel:heat:switch:";
    /**
     * 记录当月用水量
     */
    public static final String WATER_METER = "acrel:water:";
    /**
     * 记录当月用水量
     */
    public static final String WATER_METER_NOW = "acrel:water:now:";
    /**
     * 当前水表在线状态
     */
    public static final String CURRENT_WATER_ONLINE = "acrel:water:online:";
    /**
     * 发送消息的唯一操作符
     */
    public static final String ACREL_CONTROL_UUID = "acrel:control:";
    /**
     * 水表开关key
     */
    public static final String WATER_SWITCH_STATUS = "acrel:water:switch:";

    /**
     * 物业方面操作的token
     */
    public static final String TENEMENT_LOGIN_TOKEN = "tenement:token:";

    /**
     * 物业方面对于家庭的定义id
     */
    public static final String TENEMENT_FAMILY = "tenement:family:";


    /**
     * 用户前一月用水量记录
     */
    public static final String WATER_LAST_FLOWMETER = "water:lastMonth:flowmeter:";

    /**
     * 设备信息缓存前缀
     */
    public static final String EQUIPMENT_INFO_KEY = "hainayun:equipment:";

    public static final String DNAKE_CONTROL_INFO = "dnake:control:";


}
